<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>填写申述内容</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />

</head>

<body>
  <div id="interpolation"></div>

</body>
<script id="interpolationtmpl" type="text/x-dot-template">
<div class="aui-timeline" style="margin-top:0.8rem">
    <div class="aui-timeline-item">
        <div class="aui-timeline-item-label aui-bg-info text-light">Step.1</div>
        <div class="aui-timeline-item-inner">
            <div class="aui-card-list">
                <div class="aui-card-list-header aui-border-b">
                    <div>申诉类型：</div>
                </div>
                <div class="aui-card-list-content-padded" >
                    {{=it.data[0].appeal_name}}
                </div>
            </div>
        </div>
    </div>
    <div class="aui-timeline-item">
        <div class="aui-timeline-item-label aui-bg-success text-light">Step.2</div>
        <div class="aui-timeline-item-inner">
            <div class="aui-card-list">
                <div class="aui-card-list-header aui-border-b">申述理由:</div>
                <div class="aui-card-list-content" style="padding:0.6rem;">
                {{=it.data[0].buyer_cause}}
                </div>
            </div>
        </div>
    </div>
    <div class="aui-timeline-item">
        <div class="aui-timeline-item-label aui-bg-primary text-light">Step.3</div>
        <div class="aui-timeline-item-inner">
            <div class="aui-card-list">
                <div class="aui-card-list-header aui-border-b">
                    <div>手机：</div>
                </div>
                <div class="aui-card-list-content-padded" >
                  {{=it.data[0].buyer_phone}}
                </div>
            </div>
        </div>
    </div>
    <div class="aui-timeline-item">
        <div class="aui-timeline-item-label aui-bg-warning text-light">Step.4</div>
        <div class="aui-timeline-item-inner">
            <div class="aui-card-list">
                <div class="aui-card-list-header aui-border-b">
                    <div>QQ：</div>
                </div>
                <div class="aui-card-list-content-padded" >
                    {{=it.data[0].buyer_qq}}
                </div>
            </div>
        </div>
    </div>
    <div class="aui-timeline-item">
        <div class="aui-timeline-item-label aui-bg-danger text-light">Step.5</div>
        <div class="aui-timeline-item-inner">
            <div class="aui-card-list">
                <div class="aui-card-list-header aui-border-b">
                    <div>旺旺：</div>
                </div>
                <div class="aui-card-list-content-padded" >
                    {{=it.data[0].buyer_ww}}
                </div>
            </div>
        </div>
    </div>
    <div class="aui-timeline-item">
        <div class="aui-timeline-item-label aui-bg-success text-light">Step.6</div>
        <div class="aui-timeline-item-inner">
            <div class="aui-card-list">
                <div class="aui-card-list-header aui-border-b">上传凭证文件：</div>
                <div class="aui-card-list-content-padded">
                    <div class="aui-row aui-row-padded" >
                        {{~it.data[0].buyer_imgs_url1:value:index}}
                        <div class="aui-col-xs-4 img-url-1"  onclick="fnZoomIn(this);" >
                        {{? value!="./img/add_pic.png"}}
                            <img src="{{= value}}" />
                            {{?}}
                        </div>
{{~}}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

</script>

<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="./conf/config.js"></script>
<script type="text/javascript" src="./js/common.js"></script>
<script type="text/javascript" src="../script/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="../script/doT.min.js"></script>
<script type="text/javascript">
    apiready = function() {
        fnGetData();
    };
    function fnZoomIn(that){
      var srcBig=$(that).find("img").attr("src");
      api.openWin({
          name: 'img_big',
          url: './img_big.html',
          pageParam: {
              src: srcBig
          }
      });

      $("#model").find("img").attr("src",srcBig);
      $("#model").show();
    }
    function fnGetData(){
      var userInfo = $api.getStorage('userInfo');
      //获取数据app中存入的数据然后分配到模板中；
      var random = userInfo.random;
      var userid = userInfo.userid;
      //获取需要的参数

      var orderId = api.pageParam.orderId;

          //var buyer_imgs_url={img1,img2,img3,img4,img5};
          //alert(buyer_imgs_url);
      api.ajax({
          url: SITE_URL + 'index.php?m=api&c=appnew&a=read_appeal_order',
          method: 'POST',
          data: {
              values: {
                  "userid": userid,
                  "random": random,
                  "oid": orderId,
              }
          }
      }, function(ret, err) {
        //alert(JSON.stringify(ret));
          if (ret.status == 1) {
fnUpdateWare(ret);
          } else {
              alert(ret.msg);
          }

      });

    }
    //分配数据到模板；
    function fnUpdateWare(ret) {
        //var dataInter = {"name":"Jake","age":31};
        var interText = doT.template($("#interpolationtmpl").text());
        $("#interpolation").html(interText(ret));

    }


</script>

</html>
